package cn.donting.jme.edit.ui.scenetree.meum;

import cn.donting.jme.edit.ui.scenetree.ClipBoard;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuItem;
import javafx.scene.input.MouseButton;
import javafx.scene.input.MouseEvent;

public abstract class AbsTreeMenu extends Menu implements EventHandler<ActionEvent> {
    public AbsTreeMenu(String text) {
        super(text);
        setOnAction(this);
    }
    @Override
    public  void handle(ActionEvent event) {
            action(ClipBoard.getInstance());
    }
    public abstract boolean isAvailable(ClipBoard clipBoard);

    public abstract void action(ClipBoard clipBoard);


}
